﻿using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;
using System;
using System.IO;
using SuperX.SuperSocket.Socket.Transfer.Server;
using SuperX.SuperSocket.Socket.Transfer;

namespace SuperX.SuperSocket.Socket.Transfer.Server.UpLoad.Command
{
    public class DoEnd : CommandBase<TransferSession, BinaryRequestInfo>
    {
        public override void ExecuteCommand(TransferSession session, BinaryRequestInfo requestInfo)
        {
            ConsoleLogHelper.Debug(Name);
            session.FileTransferEngine.m_EndEvent.Set();
        }
    }
}